package com.jeecg.demo.service;

import com.jeecg.demo.entity.AppUserEntity;
import com.jeecg.demo.entity.SysUserEntity;

import org.jeecgframework.core.common.service.CommonService;

import java.io.Serializable;

public interface AppUserServiceI extends CommonService {

	public void delete(AppUserEntity entity) throws Exception;

	public Serializable save(AppUserEntity entity) throws Exception;

	public void saveOrUpdate(AppUserEntity entity) throws Exception;

	public SysUserEntity checkAppuser(String username, String password)
			throws Exception;

	public void updatePwd(String phoneNum, String newPwd);

	public AppUserEntity checkPhone(String phone);

	public AppUserEntity registerUser(AppUserEntity appUser);

	public String createUserName(String prefix, int bit);
}
